class Student {
    public String name;
    public int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Student() {
        System.out.println("无参构造方法被this调用了");
    }
}

public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("张三",18);
    }
}
